<%*
$M_FILHO_TIPO = 0-> null, 1-> cat_menu, 2-> sel_menu, 3-> separator, 4->text
$ 

*%>
<div id="<%$MENU%>" class="menu">
    <%section name=i loop=$M_NOME%>
         <%if $M_TIPO[i] == 1%>
            <a menu="<%$M_FILHO[i]%>" img="<%$M_IMG[i]%>"><%$M_NOME[i]%></a>
         <%elseif $M_TIPO[i] == 2%>
            <a action="$(this).StTitle({title:'<%$M_TITLE[i]%>'});$(this).StLink({url:'<%$M_URL[i]%>'});" img="<%$M_IMG[i]%>"><%$M_NOME[i]%></a>
         <%elseif $M_TIPO[i] == 3%>
             <a rel="separator"></a>         
         <%elseif $M_TIPO[i] == 4%>
         <a rel="text">
             <img src="<%$M_IMG[i]%>" style="z-index:100;position:absolute;margin-top:-20px; margin-left:-25px;margin-bottom:10px"/>
             <br><%$M_TEXTO[i]%><br>
         </a>
         <%/if%>
    <%sectionelse%>
        sem menu
    <%/section%>
</div>